package com.dayu.gulimall.product.feign;

import com.dayu.common.to.es.SkuEsModel;
import com.dayu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author dayu
 * @version 1.0
 * @email dayu007@foxmail.com
 * @date 2020/12/6 22:12
 * @description
 */
@FeignClient("gulimall-search")
public interface SearchFeignClient {


    @PostMapping("/search/save/product")
    public R productStatusUp(@RequestBody List<SkuEsModel> esModelList);
}
